package com.zzyl.mapper;

import com.zzyl.entity.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MemberMapper {
    @Select("select * from member where open_id = #{openId}")
    public Member selectByOpenId(String openId);

    /**
     * 新用户保存手机号
     * @param member
     */
    void save(Member member);

    /**
     * 非新用户修改手机号
     * @param member
     */
    void update(Member member);

    /**
     * 查询取消预约数量
     * @return
     */
    @Select("select ")
    Integer cancelCount();
}
